package com.utc.cards.model.player;

import java.util.HashMap;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.utc.cards.model.deck.Deck;

@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
public class Hands
{
    private Map<String, Deck> hands;

    public Hands()
    {
        super();
        this.setHands(new HashMap<String, Deck>());
    }

    public Hands(Map<String, Deck> hands)
    {
        super();
        this.hands = hands;
    }

    public Map<String, Deck> getHands()
    {
        return hands;
    }

    public void setHands(Map<String, Deck> hands)
    {
        this.hands = hands;
    }

    public void put(String key, Deck deck)
    {
        hands.put(key, deck);
    }

    public Deck get(String key)
    {
        return hands.get(key);
    }

}
